<template>
    <div class="login">

        <ToolBar v-if="back !== 'login'"></ToolBar>
        <div class="top">
            <p>
                <img :src="logo" alt="">
            </p>
            <p>提醒创造价值</p>
        </div>
            <router-view></router-view>
    </div>
</template>

<script>
    import logo from '@/assets/img/bg_logo.png'
    import ToolBar from "../components/Login/ToolBar";
    export default {
        name: "Login",
        components: {ToolBar},
        data(){
            return {
                logo:logo,
                back:this.$route.name
            }
        },
        watch:{
            "$route":function () {
                this.back = this.$route.name
            }
        }
    }
</script>

<style scoped>
    .login{
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
    }
    .top{
        margin: 4rem auto;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        height: 5rem;
    }
    .top p{
        width: 100%;
        font-size:0.88rem;
        font-family:PingFang SC;
        font-weight:bold;
        color:rgba(51,51,51,1);
        text-align: center;
    }
    .top p img{
        width: 9.34rem;
    }
</style>